package com.scm.persist.mybatis;

import com.scm.persist.model.ScmOrderOperation;
import com.scm.persist.model.ScmOrderOperationExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmOrderOperationMapper {
    int countByExample(ScmOrderOperationExample example);

    int deleteByExample(ScmOrderOperationExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmOrderOperation record);

    int insertSelective(ScmOrderOperation record);

    List<ScmOrderOperation> selectByExampleWithRowbounds(ScmOrderOperationExample example, RowBounds rowBounds);

    List<ScmOrderOperation> selectByExample(ScmOrderOperationExample example);

    ScmOrderOperation selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ScmOrderOperation record, @Param("example") ScmOrderOperationExample example);

    int updateByExample(@Param("record") ScmOrderOperation record, @Param("example") ScmOrderOperationExample example);

    int updateByPrimaryKeySelective(ScmOrderOperation record);

    int updateByPrimaryKey(ScmOrderOperation record);

    int updateByScmOrderId(@Param("updated")ScmOrderOperation updated,@Param("scmOrderId")Long scmOrderId);

    List<ScmOrderOperation> selectByScmOrderId(@Param("scmOrderId")Long scmOrderId);




}
